import axios from "axios";

export function getBaiduInfoByUser(): Promise<string> {
    return new Promise((resolve, reject) => {
        axios({method: 'get', url: '/api/pan'}).then(value => {
            resolve(value.data);
        }).catch(reason => {
            console.log(reason);
            reject();
        })
    })
}